package com.bot.backend.service.impl.pk;

import com.bot.backend.consumer.WebSocketServer;
import com.bot.backend.service.pk.StartGameService;
import org.springframework.stereotype.Service;

@Service
public class StartGameServiceImpl implements StartGameService {
    @Override
    public String startGame(Integer aId, Integer bId, Integer aSnakeId, Integer bSnakeId) {
        System.err.println("start game：" + aId  +" " + bId + " " + aSnakeId + " " + bSnakeId);
        WebSocketServer.startGame(aId, bId, aSnakeId, bSnakeId);
        return "start game success";
    }
}
